/**
 * Filename: ForthGuideFragment.java
 * @author  Firefly
 * @contact postfirefly@163.com
 * @time    2016/5/20 18:25
 */
package com.github.postsanf.yinian.guide;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.github.postsanf.yinian.R;
import com.umeng.analytics.MobclickAgent;

/**
 * 引导页4
 */
public class ForthGuideFragment extends BaseGuideFragment {

//    final long ANIMATION_DURATION = 500;
//    final long ANIMATION_OFFSET = 200;
//
//    private int[] mAnimationViewIds = {
//            R.id.guide_item_2
//    };

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.yn_guide_fragment_four, container, false);
    }

//    @Override
//    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
//        super.onViewCreated(view, savedInstanceState);
//
//        for (int i = 0; i < mAnimationViewIds.length; i++) {
//            Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.yn_guide_items);
//            animation.setDuration(ANIMATION_DURATION);
//            animation.setStartOffset(ANIMATION_OFFSET * i);
//            view.findViewById(mAnimationViewIds[i]).startAnimation(animation);
//        }
//    }

    @Override
    public int[] getChildViewIds() {
        return new int[]{
//                R.id.guide_item_1
        };
    }

    @Override
    public int getRootViewId() {
        return R.id.layout_guide_forth;
    }


    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart("MainScreen"); //统计页面
    }
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd("MainScreen");
    }
}
